package com.yuejian_06.yuejian_06.service;

import com.yuejian_06.yuejian_06.bean.ClubBean;
import com.yuejian_06.yuejian_06.bean.ClubVideoBean;
import com.yuejian_06.yuejian_06.bean.CourseBean;
import com.yuejian_06.yuejian_06.bean.SuccessBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by __ZL__ on 2017/9/28.
 */

public interface ClubService {

    //俱乐部列表
    @GET("clubList")
    Call<List<ClubBean>> clubList();
    //俱乐部详情
    @GET("getclub")
    Call<ClubBean> getclub(
            @Query("club_id") String club_id);
    //俱乐部课程列表
    @GET("getclubCL")
    Call<List<CourseBean>> getclubCL(
            @Query("club_id") String club_id);
    //俱乐部视频列表
    @GET("getclubV")
    Call<List<ClubVideoBean>> getclubV(
            @Query("club_id") String club_id);
    //课程列表-搜索
    @GET("getclubSearch")
    Call<List<ClubBean>> getclubSearch(
            @Query("name") String name);
    //俱乐部收藏／取消收藏
    @GET("CollectClub")
    Call<SuccessBean> CollectClub(
            @Query("user_id") String user_id,
            @Query("club_id") String club_id);
    //判断是否收藏
    @GET("isCollect")
    Call<SuccessBean> isCollect(
            @Query("user_id") String user_id,
            @Query("club_id") String club_id);
}
